#include "DTimer.h"

DTimer::DTimer(void)
{
	Reset();
}


DTimer::~DTimer(void)
{
	//
}

void DTimer::Tick()
{
	m_lastTime = s3eTimerGetMs();
}

uint64 DTimer::GetDeltaSeconds()
{
	return s3eTimerGetMs() - m_lastTime;
}

void DTimer::Reset()
{
	m_startTime = s3eTimerGetMs();
	m_deltaSecs = 0;
	m_lastTime = m_startTime;
}